import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';
import {ROUTER} from "../../service/router.service";
import {USER} from "../../service/user.service";

/**
 * Generated class for the ProtocolPage page.
 *
 * See http://ionicframework.com/docs/components/#navigation for more info
 * on Ionic pages and navigation.
 */
@IonicPage()
@Component({
  selector: 'page-protocol',
  templateUrl: 'protocol.html',
})
export class ProtocolPage {

  constructor(public navCtrl: NavController, public navParams: NavParams,private ROUTE:ROUTER,private USER:USER) {
  }

  ionViewDidLoad() {
    console.log('ionViewDidLoad ProtocolPage');
  }

  goLoginPage(){
    history.back();
    this.USER.relogin();
  }
}
